import mysql.connector

def connect_to_database():
    connection = mysql.connector.connect(
        host="localhost",
        user="root",
        password="8420jjph",
        database="logging"
    )
    return connection

def connect_to_database_test():
    connection = mysql.connector.connect(
        host="localhost",
        user="root",
        password="HaoyiWang12",
        database="logging_test"
    )
    return connection